package net.web.struts.action.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.validator.ValidatorForm;

//public class RegistrationForm extends ValidatorForm {
public class RegistrationForm extends ActionForm {

	private static final long serialVersionUID = 1L;

	/** password property */
	private String password;

	/** phone property */
	private String phone;

	/** gender property */
	private String gender;

	/** dd property */
	private String dd;

	/** userid property */
	private String userid;

	/** mm property */
	private String mm;

	/** firstname property */
	private String firstname;

	/** yyyy property */
	private String yyyy;

	/** lasstname property */
	private String lastname;

	/*
	 * Generated Methods
	 */


//	public ActionErrors validate(ActionMapping mapping,
//			HttpServletRequest request) {
//		ActionErrors ae = null;
//		
//			ae = new ActionErrors();
//			ae = super.validate(mapping, request);
//			if (mm != null && dd != null && yyyy != null) {
//				if (mm.equals("month") || dd.equals("date") || yyyy.equals("year")) {
//					ActionMessage am1 = new ActionMessage("dob.req");
//					ae.add("dob", am1);
//				}
//			}
//	
//
//	return ae;
//
//	}

	/**
	 * Returns the password.
	 * 
	 * @return String
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Set the password.
	 * 
	 * @param password
	 *            The password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Returns the phone.
	 * 
	 * @return String
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * Set the phone.
	 * 
	 * @param phone
	 *            The phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * Returns the gender.
	 * 
	 * @return String
	 */
	public String getGender() {
		return gender;
	}

	/**
	 * Set the gender.
	 * 
	 * @param gender
	 *            The gender to set
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

	/**
	 * Returns the dd.
	 * 
	 * @return String
	 */
	public String getDd() {
		return dd;
	}

	/**
	 * Set the dd.
	 * 
	 * @param dd
	 *            The dd to set
	 */
	public void setDd(String dd) {
		this.dd = dd;
	}

	/**
	 * Returns the userid.
	 * 
	 * @return String
	 */
	public String getUserid() {
		return userid;
	}

	/**
	 * Set the userid.
	 * 
	 * @param userid
	 *            The userid to set
	 */
	public void setUserid(String userid) {
		this.userid = userid;
	}

	/**
	 * Returns the mm.
	 * 
	 * @return String
	 */
	public String getMm() {
		return mm;
	}

	/**
	 * Set the mm.
	 * 
	 * @param mm
	 *            The mm to set
	 */
	public void setMm(String mm) {
		this.mm = mm;
	}

	/**
	 * Returns the firstname.
	 * 
	 * @return String
	 */
	public String getFirstname() {
		return firstname;
	}

	/**
	 * Set the firstname.
	 * 
	 * @param firstname
	 *            The firstname to set
	 */
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	/**
	 * Returns the yyyy.
	 * 
	 * @return String
	 */
	public String getYyyy() {
		return yyyy;
	}

	/**
	 * Set the yyyy.
	 * 
	 * @param yyyy
	 *            The yyyy to set
	 */
	public void setYyyy(String yyyy) {
		this.yyyy = yyyy;
	}

	/**
	 * Returns the lasstname.
	 * 
	 * @return String
	 */
	public String getLastname() {
		return lastname;
	}

	/**
	 * Set the lasstname.
	 * 
	 * @param lasstname
	 *            The lasstname to set
	 */
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
}
